import Vue from 'vue'
import Router from 'vue-router'
import login from '@/views/login'
import index from '@/views/index'
import console from '@/views/console';
import console1 from '@/views/console1';
import console2 from '@/views/console2';
import student from '@/views/student';
import register from '@/views/register';
import yunshu from '@/views/yunshu';
import Home from '@/views/Home';
import parcel from "@/views/parcel";
import parcel1 from "@/views/parcel1";
import parcel2 from "@/views/parcel2";
import parcel3 from "@/views/parcel3";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/index',
      name: 'index',
      component: index,
      children:[
        {
          path: '/Home',
          name: 'Home',
          component: Home
        },
        {
          path: '/console',
          name: 'console',
          component: console
        },
        {
          path: '/console1',
          name: 'console1',
          component: console1
        },
        {
          path: '/console2',
          name: 'console2',
          component: console2
        },
        {
          path: '/student',
          name: 'student',
          component: student
        },
        {
          path: '/yunshu',
          name: 'yunshu',
          component: yunshu
        },
        {
          path: '/parcel',
          name: 'parcel',
          component: parcel
        },
        {
          path: '/parcel1',
          name: 'parcel1',
          component: parcel1
        },
        {
          path: '/parcel2',
          name: 'parcel2',
          component: parcel2
        },
        {
          path: '/parcel3',
          name: 'parcel3',
          component: parcel3
        }
      ]
    }

  ]
})
